﻿@{
    ViewBag.Title = "Index";
    //Layout = "~/Views/Shared/_Layout.cshtml";
}
@section ViewJs {
    <script type="text/javascript" src="@Url.Content("~/Scripts/RoleIndex.js")"></script>
}
 
 <!--初始化显示-->
     <table id="dg" title="角色管理"  class="easyui-datagrid"  style="height:550px;"  > 
        <thead>
          <tr>
             <th field="chk" checkbox="true" title="全选">全选</th>            
             <th field="ID" width="50" >角色ID</th>
             <th field="RoleName" width="50" >角色名</th>
             <th field="Remark" width="100" >备 注</th>
          </tr>
        </thead> 
        <tfoot>
          <tr>
            <td colspan="2">total:</td>
            <td colspan="2">角色信息</td>
          </tr>
        </tfoot>   
        </table>
    <div id="toolbar">  
        <a href="#" id="lbtnAdd" class="easyui-linkbutton" iconCls="icon-add" plain="true" >添加</a>  
        <a href="#" id="lbtnEdit" class="easyui-linkbutton" iconCls="icon-edit" plain="true" >修改</a>  
      <a href="#" id="lbtnRemove" class="easyui-linkbutton" iconCls="icon-cancel" plain="true" >删除</a>
     
      <label>| 角色:</label>  
      <input id="txtQueryName"  class="easyui-validatebox" name="txtQueryName"/> 
      <a href="#" id="lbtnQuery" class="easyui-linkbutton" iconCls="icon-search" plain="true" >查询</a> 
           
    </div> 
   <!--添加-->
<div id="dlg" class="easyui-dialog" style="width:550px;height:400px;padding:10px 20px"  
        closed="true" buttons="#dlg-buttons" modal="true" shadow="true" > 
     <div class="ftitle">角色管理</div>       
      <form id="fm" method="post">
        <div class="fitem">  
            <label>编号:</label>  
            <input id="txtRoleID"  class="easyui-validatebox" name="RoleID"/>  
        </div>        
        <div class="fitem">  
            <label>角色:</label>  
            <input id="txtRoleName"  class="easyui-validatebox" name="RoleName"/>  
        </div>  
        <div >  
            <label>备注:</label>  
            <textarea id="txtRemark"  name="Remark" rows="10" cols="40"  class="easyui-validatebox" ></textarea> 
        </div> 
    </form>  
</div> 
 <div id="dlg-buttons">        
    <a href="#" id="lbtnSave" class="easyui-linkbutton" iconCls="icon-ok" >保 存</a>  
    <a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')">取 消</a>  
</div> 

